package com.zhongyouyun.cqyc.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author: shenyi
 * @Date: 2023-10-20
 * @Description: 法律法规讲堂内容
 */

@JsonInclude(JsonInclude.Include.NON_NULL)
@Accessors(chain = true)
@ApiModel(value = "LawModel对象", description = "法律法规讲堂内容")
@Data
@TableName("cqyc_law")
public class LawModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "类型ID")
    @TableField("law_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long lawId;

    @ApiModelProperty(value = "标题")
    @TableField("ttile")
    private String ttile;

    @ApiModelProperty(value = "内容")
    @TableField("context")
    private String context;

    @ApiModelProperty(value = "视频地址")
    @TableField("video_address")
    private String videoAddress;

    @ApiModelProperty(value = "0 未发布 1已发布")
    @TableField("state")
    private String state;

    @ApiModelProperty(value = "相对地址")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "部门")
    @TableField("dept_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long deptId;

    @ApiModelProperty(value = "创建人")
    @TableField("createBy")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private Date createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updateBy")
    private String updateBy;

    @ApiModelProperty(value = "修改时间")
    @TableField("updateTime")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;


}